package com.knight.study.patterns.tujie.adapter.example2;

import com.knight.study.patterns.tujie.adapter.Banner;

/**
 * @Author knight
 * @Date 2024/9/5 18:38
 */

public class PrintBanner extends Print{
    private Banner banner;

    public PrintBanner(Banner banner) {
        this.banner = banner;
    }


    @Override
    public void printWeak() {
        banner.showWithParen();
    }

    @Override
    public void printStrong() {
        banner.showWithAster();
    }
}
